package com.gitee.zycra.union.api.common.model;

import com.gitee.zycra.jdbc.annotation.Column;
import com.gitee.zycra.jdbc.annotation.ID;
import com.gitee.zycra.jdbc.annotation.Table;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author zycra
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Table("api_user_group")
public class ApiUserGroup {

    /**
     * 主键
     */
    @ID
    @Column("id")
    private Long id;

    /**
     * 组ID
     */
    @Column("group_id")
    private Long groupId;

    /**
     * 用户ID
     */
    @Column("user_id")
    private Long userId;

    /**
     * 权限(1:只读,2:开发者,3:组长)
     */
    @Column("auth")
    private Integer auth;

    /**
     * 创建时间
     */
    @Column("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Column("update_time")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @Column("deleted")
    private Boolean deleted;
}
